import request from '@/utils/request'

//查询物流模板列表
export function queryStoreList(query) {
  return request({
    url: '/express/template/manage/queryExpressTemplateList',
    method: 'get',
    params: query
  })
}


// 选择区域
export function queryExpressTemplateList(query) {
  return request({
    url: '/express/template/manage/queryAllRegionList',
    method: 'get',
    params: query
  })
}

//新增运费模板
export function addExpressTemplate(data) {
  return request({
    url: '/express/template/manage/addExpressTemplate',
    method: 'post',
    data
  })
}

//删除运费模板
export function deleteTemplate(id) {
  return request({
    url: `/express/template/manage/delete/${id}`,
    method: 'delete'
  })
}


//详情
export function queryTemplateDetail(id) {
  return request({
    url: `/express/template/manage/detail/${id}`,
    method: 'get'
  })
}

// 更新运费模板
export function updateExpressTemplate(data) {
  return request({
    url: '/express/template/manage/updateExpressTemplate',
    method: 'put',
    data
  })
}

// 查询订单列表
export function queryOrderList(query) {
  return request({
    url: '/order/manage/queryOrderList',
    method: 'get',
    params: query
  })
}

//查询订单状态枚举值
export function queryOrderStatus(query) {
  return request({
    url: '/order/manage/queryOrderStatus',
    method: 'get',
    params: query
  })
}

// 订单详情
export function queryOrderDetail(id) {
  return request({
    url: `/order/manage/detail/${id}`,
    method: 'get'
  })
}